package com.yinhai.message.core.dao;

import java.util.List;

import com.yinhai.message.api.vo.TMMessageVo;
import com.yinhai.message.core.po.MessageDetailPo;

public interface IMessageDetailDao {
	MessageDetailPo save(MessageDetailPo po);

	void batchSave(List<MessageDetailPo> detailPos);
	
	void update(MessageDetailPo po);
	
	void updateBatch(List<MessageDetailPo> poList);
	 /**
     * 查询发送失败的消息
     * @return
     */
    List<TMMessageVo> queryErrorMessageDetails();
    /**
     * 重发状态更新
     * @param poList
     */
    void updateBatchByReSend(List<MessageDetailPo> poList);
}
